@import 'story/assets/css/var.scss';

.header {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dcdfe6;
  box-sizing: border-box;

  &-logo {
    height: 100%;
    width: 250px;
    font-weight: bold;
    color: $mainColor;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 50px;
      height: 50px;
      margin-right: 10px;
    }
  }

  &-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-right: 100px;
    height: 100%;

    &-input {
      position: relative;

      .popup {
        position: absolute;
        top: 45px;
        left: 0;
        width: 100%;
        max-height: 300px;
        min-height: 100px;
        border: 1px solid #dcdfe6;
        background: #fff;
        z-index: 20;
        border-radius: 5px;

        .nodata {
          text-align: center;
          font-size: 14px;
          margin-top: 30px;
          color: rgba($mainColor, 0.7);
        }

        .detail:hover {
          background: rgba($mainColor, 0.2);
        }
        .detail {
          padding: 4px 15px;
          box-sizing: border-box;
          cursor: pointer;

          span:nth-child(1) {
            color: rgba($mainColor, 0.7);
            font-size: 14px;
          }

          span:last-child {
            color: #ccc;
            font-size: 12px;
            margin-left: 5px;
          }
        }
      }
    }

    ul {
      padding: 0 30px;
      height: 100%;

      li {
        display: inline-flex;
        height: 100%;
        align-items: center;
        padding: 0 20px;
        color: rgba($mainColor, 0.7);
        cursor: pointer;
      }

      .active {
        background: rgba($mainColor, 0.2);
        color: $mainColor;
        border-bottom: 1px solid $mainColor;
      }
    }
  }
}
